<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <link rel="Bookmark" href="../imgs/bai.ico"/>
    <link rel="Shortcut Icon" href="../imgs/bai.ico"/>
    <title>家政</title>
    <link rel="stylesheet" type="text/css" href="../css/index.css"/>
    <style type="text/css">
    </style>
</head>
<body>
    <!--列表-->
    <div id="work">
        <!--<div class="day">-->
            <!--<div class="title">2020-10-10</div>-->
            <!--<div class="box">-->
                <!--<div class="img"></div>-->
                <!--<div class="img"></div>-->
            <!--</div>-->
        <!--</div>-->
    </div>

    <!--底部菜单-->
    <div id="menu"></div>

    <span id="msgPop"></span>
</body>
</html>


<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/view.js"></script>
<script type="text/javascript">
    var cw = document.documentElement.clientWidth;
    var ch = document.documentElement.clientHeight;
    var menu_id = 2;
    (function () {
        menuList();
        getList();
    })();
    function getList(){
        $.ajax({
            type: apis.dayList.method,
            url: apis.dayList.url,
            data: {},
            success: function (res) {
                console.log(res);
                if (res.code != 0) {
                    console.log(res.msg);
                }
                var d = res.data;
                var h = '', i;
                for (i = 0; i < d.length; i ++) {
                    h += '<div class="day" onclick="window.location.href=\'work-img.html?day=' + d[i].day + '\';">';
                    h += '<div class="title">';
                    h += d[i].day;
                    h += '<span>点击查看更多</span>';
                    h += '</div>';
                    h += '<div class="box">';
                    h += '<div class="img">';
                    h += '<img src="' + d[i].img01 + '"/>';
                    h += '</div>';
                    h += '<div class="img">';
                    h += '<img src="' + d[i].img02 + '"/>';
                    h += '</div>';
                    h += '</div>';
                    h += '</div>';
                }
                h += '<div style="width: 100%; height: 50px;"></div>';
                //console.log(h);
                $('#work').html(h);
            },
            error: function () {
                console.log('网络错误');
            }
        });
    }
</script>